#ifndef COMMITWIDGET_H
#define COMMITWIDGET_H

#include <QWidget>

class QLabel;
class QProgressBar;

namespace QApt {
class Transaction;
}

namespace Ui {
class CommitWidget;
}

class CommitWidget : public QWidget
{
    Q_OBJECT

public:
    explicit CommitWidget(QWidget *parent = nullptr);
    ~CommitWidget();

    void setTransaction(QApt::Transaction *trans);
    void clear();

protected:
    void changeEvent(QEvent *e);

private:
    Ui::CommitWidget *ui;

    QLabel *m_commitLabel;
    QProgressBar *m_progressBar;

    QApt::Transaction *m_trans;
};

#endif // COMMITWIDGET_H
